home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-07-05 | 2.7 KB | 124 lines | [TEXT/MPS ] |
- ##################################################################################################
- ## ##
- ## Program Name: Stiletto ##
- ## ##
- ## File Name: BuildStiletto ##
- ## ##
- ## © Apple Computer, Inc. 1992-1995 ##
- ## All Rights Reserved ##
- ## ##
- ## Revision History: ##
- ## ##
- ## Date Who Modification ##
- ## ##
- ## 1992-10-26 Chris Halim Original version ##
- ## 1995-06-26 Jaakko Railo Version 2.0 ##
- ## ##
- ##################################################################################################
-
-
- Set BuildStiletto 0
- Set BuildModules 0
-
- # Collect the script parameters.
-
- Loop
- Break if {#} == 0
- If "{1}" =~ /-app/
- Set BuildStiletto 1
- shift 1
- continue
- Else If "{1}" =~ /-modules/
- Set BuildModules 1
- shift 1
- continue
- Else If "{1}" =~ /-e/
- Set MakeOption "-e"
- shift 1
- continue
- Else
- Echo "### {0} - ∂"{1}∂" is not an option." > Dev:StdErr
- Echo "# Usage - {0} [-app] [-modules] [-e]" > Dev:StdErr
- Exit 1
- End
- End
-
-
- if (({BuildStiletto} == 0) && ({BuildModules} == 0))
- Set BuildStiletto 1
- Set BuildModules 1
- End
-
-
-
- Execute StilettoVars
- Execute VersionScript
-
- if Not `Exists "{TARGET68KDir}"`
- NewFolder "{TARGET68KDir}"
- end
-
- if Not `Exists "{TARGETPPCDir}"`
- NewFolder "{TARGETPPCDir}"
- end
-
- if Not `Exists "{Modules68KDir}"`
- NewFolder "{Modules68KDir}"
- end
-
- if Not `Exists "{ModulesPPCDir}"`
- NewFolder "{ModulesPPCDir}"
- end
-
- if Not `Exists "{TEMPDir}"`
- NewFolder "{TEMPDir}"
- end
-
- if Not `Exists "{OBJECTS68KDir}"`
- NewFolder "{OBJECTS68KDir}"
- end
-
- if Not `Exists "{OBJECTSPPCDir}"`
- NewFolder "{OBJECTSPPCDir}"
- end
-
- Set savedDir `Directory`
-
-
- #### Build Stiletto ####
-
- if ({BuildStiletto})
- Directory "{StilettoDir}"
- BuildProgram "Stiletto" {MakeOption} ∂
- -d OBJECTS68KDir="{OBJECTS68KDir}" ∂
- -d OBJECTSPPCDir="{OBJECTSPPCDir}" ∂
- -d SYMOptions=off ∂
- -d DEBUGOptions="{DEBUGOptions}" ∂
- -d TARGET68KDir="{TARGET68KDir}" ∂
- -d TARGETPPCDir="{TARGETPPCDir}" ∂
- -d SCRIPTSDir="{ScriptsDir}" ∂
- -d REZDir="{REZDir}" ∂
- -d OTHEROptions=""
- End
-
-
- #### Build Modules ####
-
- if ({BuildModules})
- Directory "{ModuleSourcesDir}"
- BuildProgram "Modules" {MakeOption} ∂
- -d Objects68KDir="{OBJECTS68KDir}" ∂
- -d OBJECTSPPCDir="{OBJECTSPPCDir}" ∂
- -d SYMOptions=off ∂
- -d DEBUGOptions="{DEBUGOptions}" ∂
- -d TARGET68KDir="{TARGET68KDir}" ∂
- -d TARGETPPCDir="{TARGETPPCDir}" ∂
- -d SCRIPTSDir="{ScriptsDir}" ∂
- -d REZDir="{REZDir}" ∂
- -d OTHEROptions=""
- End
-
-
- ####
-
- Directory "{savedDir}"